\hypertarget{structserver__struct}{
\section{server\_\-struct Struct Reference}
\label{structserver__struct}\index{server\_\-struct@{server\_\-struct}}
}
{\tt \#include $<$communication.h$>$}

\subsection*{Data Fields}
\begin{CompactItemize}
\item 
int \hyperlink{structserver__struct_39731d4cc8c857aa65d3462a4ce4bfc5}{isAlive}
\item 
char \hyperlink{structserver__struct_a50388c012354da44c2f85cf0492b932}{name} \mbox{[}128\mbox{]}
\item 
int \hyperlink{structserver__struct_17659ebbdd1f18203ed0ead7ca1b5ed1}{sockfd}
\item 
int \hyperlink{structserver__struct_cfe32222ef17a379eb0d1979811e2ddb}{my\_\-port}
\item 
int \hyperlink{structserver__struct_8aa422f50ae575556a51e282277c79e7}{max\_\-conn}
\item 
int \hyperlink{structserver__struct_b56d302ce3497c35c81694b8f4d1e5d7}{numbytes}
\item 
socklen\_\-t \hyperlink{structserver__struct_a4ae791fe60087000b9badae65f6a813}{sin\_\-size}
\item 
struct sockaddr\_\-in \hyperlink{structserver__struct_7ab2ae9f72357160310633ae3e1ae14c}{local\_\-addr}
\item 
struct sockaddr\_\-in \hyperlink{structserver__struct_98c3d085937cf6ad2a5b600155088e79}{remote\_\-addr}
\item 
\hyperlink{structmsg__struct}{msg} $\ast$ \hyperlink{structserver__struct_01617c3ff6cb69e68d76c45cfbab1ad8}{recvdata}
\end{CompactItemize}


\subsection{Detailed Description}
server comprend toutes les données nécessaires au bon fonctionnement d'un serveur. Attention, ici le terme \char`\"{}serveur\char`\"{} est un abus de langage puisque même un terminal est considéré comme un serveur alors que, comme en témoigne le code de init\_\-server(), terminal est bel et bien un client (établie une connexion au lieu d'en attendre une). 

Definition at line 38 of file communication.h.

\subsection{Field Documentation}
\hypertarget{structserver__struct_39731d4cc8c857aa65d3462a4ce4bfc5}{
\index{server\_\-struct@{server\_\-struct}!isAlive@{isAlive}}
\index{isAlive@{isAlive}!server_struct@{server\_\-struct}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int {\bf server\_\-struct::isAlive}}}
\label{structserver__struct_39731d4cc8c857aa65d3462a4ce4bfc5}


permet de savoir si le serveur tourne ou non 

Definition at line 40 of file communication.h.

Referenced by launch\_\-acquisition(), launch\_\-execution(), and launch\_\-interboursier().\hypertarget{structserver__struct_a50388c012354da44c2f85cf0492b932}{
\index{server\_\-struct@{server\_\-struct}!name@{name}}
\index{name@{name}!server_struct@{server\_\-struct}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}char {\bf server\_\-struct::name}\mbox{[}128\mbox{]}}}
\label{structserver__struct_a50388c012354da44c2f85cf0492b932}


nom du serveur (Acquisition, Execution, Terminal) 

Definition at line 42 of file communication.h.

Referenced by launch\_\-acquisition(), launch\_\-execution(), launch\_\-interboursier(), launch\_\-terminal(), log\_\-msg\_\-srv(), and log\_\-srv().\hypertarget{structserver__struct_17659ebbdd1f18203ed0ead7ca1b5ed1}{
\index{server\_\-struct@{server\_\-struct}!sockfd@{sockfd}}
\index{sockfd@{sockfd}!server_struct@{server\_\-struct}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int {\bf server\_\-struct::sockfd}}}
\label{structserver__struct_17659ebbdd1f18203ed0ead7ca1b5ed1}


descripteur du socket 

Definition at line 44 of file communication.h.

Referenced by launch\_\-acquisition(), launch\_\-execution(), launch\_\-interboursier(), and launch\_\-terminal().\hypertarget{structserver__struct_cfe32222ef17a379eb0d1979811e2ddb}{
\index{server\_\-struct@{server\_\-struct}!my\_\-port@{my\_\-port}}
\index{my\_\-port@{my\_\-port}!server_struct@{server\_\-struct}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int {\bf server\_\-struct::my\_\-port}}}
\label{structserver__struct_cfe32222ef17a379eb0d1979811e2ddb}


port du serveur 

Definition at line 46 of file communication.h.

Referenced by launch\_\-acquisition(), launch\_\-interboursier(), and log\_\-srv().\hypertarget{structserver__struct_8aa422f50ae575556a51e282277c79e7}{
\index{server\_\-struct@{server\_\-struct}!max\_\-conn@{max\_\-conn}}
\index{max\_\-conn@{max\_\-conn}!server_struct@{server\_\-struct}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int {\bf server\_\-struct::max\_\-conn}}}
\label{structserver__struct_8aa422f50ae575556a51e282277c79e7}


nombre maximal de connexions 

Definition at line 48 of file communication.h.\hypertarget{structserver__struct_b56d302ce3497c35c81694b8f4d1e5d7}{
\index{server\_\-struct@{server\_\-struct}!numbytes@{numbytes}}
\index{numbytes@{numbytes}!server_struct@{server\_\-struct}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int {\bf server\_\-struct::numbytes}}}
\label{structserver__struct_b56d302ce3497c35c81694b8f4d1e5d7}


nombre d'octets reçus par une connexion 

Definition at line 50 of file communication.h.

Referenced by launch\_\-acquisition(), launch\_\-execution(), launch\_\-interboursier(), and launch\_\-terminal().\hypertarget{structserver__struct_a4ae791fe60087000b9badae65f6a813}{
\index{server\_\-struct@{server\_\-struct}!sin\_\-size@{sin\_\-size}}
\index{sin\_\-size@{sin\_\-size}!server_struct@{server\_\-struct}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}socklen\_\-t {\bf server\_\-struct::sin\_\-size}}}
\label{structserver__struct_a4ae791fe60087000b9badae65f6a813}


taille du socket 

Definition at line 52 of file communication.h.

Referenced by launch\_\-acquisition(), launch\_\-execution(), and launch\_\-interboursier().\hypertarget{structserver__struct_7ab2ae9f72357160310633ae3e1ae14c}{
\index{server\_\-struct@{server\_\-struct}!local\_\-addr@{local\_\-addr}}
\index{local\_\-addr@{local\_\-addr}!server_struct@{server\_\-struct}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}struct sockaddr\_\-in {\bf server\_\-struct::local\_\-addr}\hspace{0.3cm}{\tt  \mbox{[}read\mbox{]}}}}
\label{structserver__struct_7ab2ae9f72357160310633ae3e1ae14c}


adresse locale 

Definition at line 54 of file communication.h.

Referenced by launch\_\-acquisition(), launch\_\-execution(), and launch\_\-interboursier().\hypertarget{structserver__struct_98c3d085937cf6ad2a5b600155088e79}{
\index{server\_\-struct@{server\_\-struct}!remote\_\-addr@{remote\_\-addr}}
\index{remote\_\-addr@{remote\_\-addr}!server_struct@{server\_\-struct}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}struct sockaddr\_\-in {\bf server\_\-struct::remote\_\-addr}\hspace{0.3cm}{\tt  \mbox{[}read\mbox{]}}}}
\label{structserver__struct_98c3d085937cf6ad2a5b600155088e79}


adresse distante 

Definition at line 56 of file communication.h.

Referenced by launch\_\-acquisition(), launch\_\-execution(), launch\_\-interboursier(), and launch\_\-terminal().\hypertarget{structserver__struct_01617c3ff6cb69e68d76c45cfbab1ad8}{
\index{server\_\-struct@{server\_\-struct}!recvdata@{recvdata}}
\index{recvdata@{recvdata}!server_struct@{server\_\-struct}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf msg}$\ast$ {\bf server\_\-struct::recvdata}}}
\label{structserver__struct_01617c3ff6cb69e68d76c45cfbab1ad8}


données reçues 

Definition at line 58 of file communication.h.

Referenced by launch\_\-acquisition(), launch\_\-execution(), and launch\_\-interboursier().

The documentation for this struct was generated from the following file:\begin{CompactItemize}
\item 
/home/noxon/coding/C/esiee-in301/libcomm/\hyperlink{communication_8h}{communication.h}\end{CompactItemize}
